package com.zzl.finance.data.entity.feign;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 授信额度表,即金融机构给集团的额度
 *
 * @author wztsl
 * @date 2021-11-30 14:13:19
 */
@Data
@TableName("t_instituty_credit")
@ApidocModel
public class InstitutyCreditEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "金融机构id")
    private String financeInstitutyId;
    @ApidocModelProperty(description = "授信金额")
    private Double creditAllAmount;
    @ApidocModelProperty(description = "企业id，即集团的企业id")
    private String enterpriseId;
    @ApidocModelProperty(description = "剩余授信金额")
    private Double creditSurplusAmount;
    @ApidocModelProperty(description = "冻结总额度")
    private Double creditFrozenAmount;
    @ApidocModelProperty(description = "排序编号")
    private Integer sortNum;
    @ApidocModelProperty(description = "状态：1 最新数据，0 历史数据")
    private Integer intitutyCreditStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间", validate = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "修改时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @ApidocModelProperty(description = "创建人")
    private Integer creatorId;
    @ApidocModelProperty(description = "修改人")
    private Integer updaterId;
    @ApidocModelProperty(description = "备注")
    private String remark;

}
